﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

namespace CentralOffice.WebClient.CommonServices
{
    /// <summary>
    /// GetCustomers 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消对下行的注释。
    [System.Web.Script.Services.ScriptService]
    public class GetCustomers : System.Web.Services.WebService
    {

        [WebMethod(true)]
        public string[] GetAllCustomers(string prefixText, int count)
        {
            if (count == 0)
                count = 10;

            List<String> result = new List<string>();

            result.Add("供应商01");
            result.Add("供应商02");
            result.Add("供应商03");
            
            result.Add("qwertyuiopasdfghjklzxcvbnm");
            result.Add("mnbvcxzlkjhgfdsapoiuytrewq");
            result.Add("qazwsxedcrfvtgbyhnujmikolp");

            result.Add("供应商07");
            result.Add("供应商08");
            result.Add("供应商09");
            
            return result.ToArray();
        }
    }
}
